<%-- 
    Document   : view-tstock-data
    Created on : 16 Jun 11, 15:29:08
    Author     : Bayu
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
       <jsp:include page="includes/script.html"/>
       <title>TStock Data</title>
    </head>

    <body>
        <center>
            <h2>
                Initial Stock Data
            </h2>
            <br>
            <br>
        <table bgcolor="#000000" cellpadding="1" cellspacing="1" width="800">
            <tr bgcolor="#f3f7f6" align="center">
                    
                    <td>Month</td>
                    <td>Plan Stock</td>
                    <td>Actual Stock</td>
                    <td>Action</td>
                    

                </tr>

            
                <c:forEach items="${data}" var="data">
                    <tr bgcolor="#ffffff">             
                        <td>${data.notes}</td>
                        <td>${data.planStock}</td>
                        <td>${data.stockActual}</td>
                        <td>
                            <a href="tstock-update.htm?id=${data.idStock}">Edit</a>&nbsp;
                            <a href="view-tstock-data.htm?id=${data.idStock}">Delete</a>&nbsp;
                        </td>
                    </tr>
                </c:forEach>
     </table>
        </center>

    </body>
</html>

